package org.jsola.hr.web;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.jsola.core.Page;
import org.jsola.core.Result;
import org.jsola.hr.dto.TransferAccountsPeopleAddDTO;
import org.jsola.hr.dto.TransferAccountsPeopleH5AddDTO;
import org.jsola.hr.dto.TransferAccountsPeopleUpdateDTO;
import org.jsola.hr.query.TransferAccountsPeopleQuery;
import org.jsola.hr.vo.TransferAccountsPeopleListVO;
import org.jsola.hr.vo.TransferAccountsPeoplePasteVO;
import org.jsola.hr.vo.TransferAccountsPeopleVO;
import org.springframework.core.io.Resource;
import org.springframework.http.ResponseEntity;

import java.util.List;

/**
 * 转账人员库
 *
 * @author zhr
 */
@Api(tags = "hr-转账人员库")
public interface ITransferAccountsPeopleControllerAPI {

    /**
     * 新增转账人员库
     * @param transferAccountsPeopleAddDTO 转账人员库新增实体
     * @return 转账人员库展示对象
     */
    @ApiOperation(value = "新增转账人员库")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "transferAccountsPeopleAddDTO", dataType = "TransferAccountsPeopleAddDTO", value = "新增转账人员库", paramType = "body")
    })
    Result<TransferAccountsPeopleVO> save(TransferAccountsPeopleAddDTO transferAccountsPeopleAddDTO);


    /**
     * 修改转账人员库
     * @param transferAccountsPeopleUpdateDTO 转账人员库
     * @return 更新数量
     */
    @ApiOperation(value = "修改转账人员库")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "transferAccountsPeopleUpdateDTO", dataType = "TransferAccountsPeopleUpdateDTO", value = "修改转账人员库", paramType = "body")
    })
    Result<Integer> update(TransferAccountsPeopleUpdateDTO transferAccountsPeopleUpdateDTO);




    /**
     * 删除单个转账人员库，彻底删除
     * @param transferAccountsPeopleId 转账人员库id
     * @return 删除数量
     */
    @ApiOperation(value="删除单个转账人员库，彻底删除")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "transferAccountsPeopleId", dataType = "String", value = "转账人员库id", paramType = "path")
    })
    Result<Integer> delete(String transferAccountsPeopleId);


    /**
     * 批量删除转账人员库，彻底删除
     * @param transferAccountsPeopleIds 转账人员库id集合
     * @return 删除数量
     */
    @ApiOperation(value = "批量删除转账人员库，彻底删除")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "transferAccountsPeopleIds", dataType = "String[]", value = "转账人员库id数组", paramType = "body" ,allowMultiple = true)
    })
    Result<Integer> deleteBatch(String[] transferAccountsPeopleIds);


    /**
     * 根据转账人员库id查询转账人员库详情
     * @param transferAccountsPeopleId 转账人员库id
     * @return 转账人员库详情
     */
    @ApiOperation(value="根据转账人员库id查询转账人员库详情")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "transferAccountsPeopleId", dataType = "String", value = "转账人员库id", paramType = "path")
    })
    Result<TransferAccountsPeopleVO> findById(String transferAccountsPeopleId);


    /**
     * 查询转账人员库
     * @param transferAccountsPeopleQuery 转账人员库查询参数
     * @return page
     */
    @ApiOperation(value="查询转账人员库")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "transferAccountsPeopleQuery", dataType = "TransferAccountsPeopleQuery", value = "转账人员库查询参数", paramType = "query")
    })
    Result<List<TransferAccountsPeopleListVO>> listAll(TransferAccountsPeopleQuery transferAccountsPeopleQuery);


     /**
     * 分页查询转账人员库
     * @param transferAccountsPeopleQuery 转账人员库查询参数
     * @return page
     */
    @ApiOperation(value="分页查询转账人员库")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "transferAccountsPeopleQuery", dataType = "TransferAccountsPeopleQuery", value = "转账人员库查询参数", paramType = "query")
    })
    Result<Page<TransferAccountsPeopleListVO>> page(TransferAccountsPeopleQuery transferAccountsPeopleQuery);

    /**
     * H5页面添加数据到人员库（批次id存在时会同时进入批次里面：批次明细信息重复更新批次明细）
     * @param transferAccountsPeopleH5AddDTO H5新增人员库需要的参数
     * @return 1
     */
    @ApiOperation(value="H5页面添加数据到人员库（批次id存在时会同时进入批次里面：批次明细信息重复更新批次明细）")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "transferAccountsPeopleH5AddDTO", dataType = "TransferAccountsPeopleH5AddDTO", value = "H5新增人员库需要的参数", paramType = "body")
    })
    Result<Integer> h5SaveData(TransferAccountsPeopleH5AddDTO transferAccountsPeopleH5AddDTO);

    /**
     * 导出转账人员库信息
     *
     * @param transferAccountsPeopleQuery 查询参数
     * @return excel
     */
    @ApiOperation(value = "导出转账人员库信息")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "transferAccountsPeopleQuery", dataType = "TransferAccountsPeopleQuery", value = "转账人员库查询参数", paramType = "body")
    })
    ResponseEntity<Resource> exportTransferAccountsPeopleList(TransferAccountsPeopleQuery transferAccountsPeopleQuery);

    /**
     * 转账人员库 粘贴选择
     * @param transferAccountsPeopleQuery 查询参数
     * @return 查询到的结果
     */
    @ApiOperation(value="转账人员库 粘贴选择")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "transferAccountsPeopleQuery", dataType = "TransferAccountsPeopleQuery", value = "查询参数", paramType = "body")
    })
    Result<TransferAccountsPeoplePasteVO> selectByIdCards(TransferAccountsPeopleQuery transferAccountsPeopleQuery);


}

